import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

import home from "@/views/home/index"
import noPage from "@/views/errorPage/404"
import contant_us from "@/views/contactus/index"
import list from "@/views/other/list"
import cdDetails from "@/views/other/cdDetails"
import details from "@/views/other/details"
export const constantRouterMap = [
  { path: '/',name:'home', component: home }, //首页
  { path: '/404', name:'404',component: noPage }, //404
  {path:'/contant_us',name:'contant_us',component:contant_us}, //联系我们
  {path:'/cddetails',name:'cddetails',component:cdDetails}, //成都
  {path:'/details',name:'details',component:details}, //详情页面
  {path:'/list',name:'list',component:list} //带列表的
]

const router=new Router({
    mode: 'hash',
  routes: constantRouterMap
})
export default  router